#include "delay_hal.h"
#include "utimer_hal.h"


void delay_us(u32 cnt)
{
	u32 t_cnt;

	for (t_cnt = 0; t_cnt < cnt; t_cnt++)
	{
		__nop();
	}
}

static uint32_t pro_val =0;
void delay_ms(uint32_t nms)
{
	uint32_t val = 0;
	pro_val = get_clock_val();
	while ((pro_val+nms)>val)
	{
		val = get_clock_val();
	}
	
	
}



